package com.from.menlo.park.data;

import com.from.menlo.park.R;

 

public enum Mood {
	//http://www.addemoticons.com/emoticon/qq/index.html
    ANGRY(0, "Angry",R.drawable.mood1),
    SAD(0, "Sad", R.drawable.mood2);
    
	private int value;
	private String name;
	private int icon;
    
    Mood(int value, String name, int icon){
		this.value = value;
		this.name = name;
		this.icon = icon;
	}
	public int getValue()
	{
		return value;
	}
	public String toString(){
		return name;
	}
	public int getIcon(){
		return icon;
	}
	public static Mood fromId(int value){
		if ( ANGRY.value == value )
			return ANGRY;
		return SAD;
	}
}
